package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysUserCashDetailCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysUserCashDetailCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCashdetailidIsNull() {
            addCriterion("CashDetailId is null");
            return (Criteria) this;
        }

        public Criteria andCashdetailidIsNotNull() {
            addCriterion("CashDetailId is not null");
            return (Criteria) this;
        }

        public Criteria andCashdetailidEqualTo(Long value) {
            addCriterion("CashDetailId =", value, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidNotEqualTo(Long value) {
            addCriterion("CashDetailId <>", value, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidGreaterThan(Long value) {
            addCriterion("CashDetailId >", value, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidGreaterThanOrEqualTo(Long value) {
            addCriterion("CashDetailId >=", value, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidLessThan(Long value) {
            addCriterion("CashDetailId <", value, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidLessThanOrEqualTo(Long value) {
            addCriterion("CashDetailId <=", value, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidIn(List<Long> values) {
            addCriterion("CashDetailId in", values, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidNotIn(List<Long> values) {
            addCriterion("CashDetailId not in", values, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidBetween(Long value1, Long value2) {
            addCriterion("CashDetailId between", value1, value2, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andCashdetailidNotBetween(Long value1, Long value2) {
            addCriterion("CashDetailId not between", value1, value2, "cashdetailid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("UserID is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("UserID is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("UserID =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("UserID <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("UserID >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("UserID >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("UserID <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("UserID <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("UserID in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("UserID not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("UserID between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("UserID not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andLostmoneyIsNull() {
            addCriterion("lostMoney is null");
            return (Criteria) this;
        }

        public Criteria andLostmoneyIsNotNull() {
            addCriterion("lostMoney is not null");
            return (Criteria) this;
        }

        public Criteria andLostmoneyEqualTo(Long value) {
            addCriterion("lostMoney =", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyNotEqualTo(Long value) {
            addCriterion("lostMoney <>", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyGreaterThan(Long value) {
            addCriterion("lostMoney >", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("lostMoney >=", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyLessThan(Long value) {
            addCriterion("lostMoney <", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyLessThanOrEqualTo(Long value) {
            addCriterion("lostMoney <=", value, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyIn(List<Long> values) {
            addCriterion("lostMoney in", values, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyNotIn(List<Long> values) {
            addCriterion("lostMoney not in", values, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyBetween(Long value1, Long value2) {
            addCriterion("lostMoney between", value1, value2, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLostmoneyNotBetween(Long value1, Long value2) {
            addCriterion("lostMoney not between", value1, value2, "lostmoney");
            return (Criteria) this;
        }

        public Criteria andLosttypeIsNull() {
            addCriterion("lostType is null");
            return (Criteria) this;
        }

        public Criteria andLosttypeIsNotNull() {
            addCriterion("lostType is not null");
            return (Criteria) this;
        }

        public Criteria andLosttypeEqualTo(Long value) {
            addCriterion("lostType =", value, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeNotEqualTo(Long value) {
            addCriterion("lostType <>", value, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeGreaterThan(Long value) {
            addCriterion("lostType >", value, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeGreaterThanOrEqualTo(Long value) {
            addCriterion("lostType >=", value, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeLessThan(Long value) {
            addCriterion("lostType <", value, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeLessThanOrEqualTo(Long value) {
            addCriterion("lostType <=", value, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeIn(List<Long> values) {
            addCriterion("lostType in", values, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeNotIn(List<Long> values) {
            addCriterion("lostType not in", values, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeBetween(Long value1, Long value2) {
            addCriterion("lostType between", value1, value2, "losttype");
            return (Criteria) this;
        }

        public Criteria andLosttypeNotBetween(Long value1, Long value2) {
            addCriterion("lostType not between", value1, value2, "losttype");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("Remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("Remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("Remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("Remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("Remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("Remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("Remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("Remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("Remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("Remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("Remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("Remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("Remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("Remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andReceivetimeIsNull() {
            addCriterion("receiveTime is null");
            return (Criteria) this;
        }

        public Criteria andReceivetimeIsNotNull() {
            addCriterion("receiveTime is not null");
            return (Criteria) this;
        }

        public Criteria andReceivetimeEqualTo(Date value) {
            addCriterion("receiveTime =", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeNotEqualTo(Date value) {
            addCriterion("receiveTime <>", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeGreaterThan(Date value) {
            addCriterion("receiveTime >", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("receiveTime >=", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeLessThan(Date value) {
            addCriterion("receiveTime <", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeLessThanOrEqualTo(Date value) {
            addCriterion("receiveTime <=", value, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeIn(List<Date> values) {
            addCriterion("receiveTime in", values, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeNotIn(List<Date> values) {
            addCriterion("receiveTime not in", values, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeBetween(Date value1, Date value2) {
            addCriterion("receiveTime between", value1, value2, "receivetime");
            return (Criteria) this;
        }

        public Criteria andReceivetimeNotBetween(Date value1, Date value2) {
            addCriterion("receiveTime not between", value1, value2, "receivetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andLoststatusIsNull() {
            addCriterion("lostStatus is null");
            return (Criteria) this;
        }

        public Criteria andLoststatusIsNotNull() {
            addCriterion("lostStatus is not null");
            return (Criteria) this;
        }

        public Criteria andLoststatusEqualTo(Integer value) {
            addCriterion("lostStatus =", value, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusNotEqualTo(Integer value) {
            addCriterion("lostStatus <>", value, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusGreaterThan(Integer value) {
            addCriterion("lostStatus >", value, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("lostStatus >=", value, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusLessThan(Integer value) {
            addCriterion("lostStatus <", value, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusLessThanOrEqualTo(Integer value) {
            addCriterion("lostStatus <=", value, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusIn(List<Integer> values) {
            addCriterion("lostStatus in", values, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusNotIn(List<Integer> values) {
            addCriterion("lostStatus not in", values, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusBetween(Integer value1, Integer value2) {
            addCriterion("lostStatus between", value1, value2, "loststatus");
            return (Criteria) this;
        }

        public Criteria andLoststatusNotBetween(Integer value1, Integer value2) {
            addCriterion("lostStatus not between", value1, value2, "loststatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}